/*
 * Copyright © 2018 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@import '~styles/colors.scss';

$cog-icon-color: $grey-04;
$cog-icon-hover-color: $blue-04;
$delete-color: $red-02;
$disabled-color: $grey-04;
$popover-width: 100px;

.actions-popover {
  display: inline-block;

  .default-target.icon-svg.icon-more {
    fill: $cog-icon-color;
    stroke: $cog-icon-color;
    font-size: 23px;
    cursor: pointer;

    &:hover,
    &.active {
      fill: $cog-icon-hover-color;
      stroke: $cog-icon-hover-color;
    }
  }

  .popper {
    width: auto;
    min-width: $popover-width;
    padding: 0;
    z-index: 1;

    hr { margin: 5px 0; }
    ul { padding: 10px 0; }
    li { padding: 5px 15px; }

    .delete { color: $delete-color; }
    .disabled {
      color: $disabled-color;
      cursor: not-allowed;
    }

    .popper__arrow {
      border-color: $grey-04;
    }
  }
}
